package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Prediction1;
import com.example.demo.common.entity.Sample;
import com.example.demo.common.mapper.Prediction1Mapper;
import com.example.demo.common.mapper.SampleMapper;
import com.example.demo.common.service.Prediction1Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class Prediction1ServiceImpl implements Prediction1Service {
    @Resource
    Prediction1Mapper prediction1Mapper;
    @Override
    public void savePrediction1(Prediction1 prediction1){
        prediction1Mapper.insert(prediction1);
    }
    @Override
    public void updatePrediction1(Prediction1 prediction1){
        prediction1Mapper.updateById(prediction1);
    }
    @Override
    public void deleteById(Long id){
        prediction1Mapper.deleteById(id);
    }
    @Override
    public Prediction1 findAll(){ return prediction1Mapper.findAll(); }
}
